package com.itheima.dao.imple;
import org.springframework.stereotype.Component;

@Component("userDao")//userDaoImpl
public class UserDaoImpl implements UserDao {
    @Override
    public boolean login(String username, String password) {
        if(username.equals("张三")&&password.equals("123")) {
            return true;
        }
        return false;
    }
    @Override
    public void  insert(){
        System.out.println("insert");

    }
    @Override
    public void update(){
        System.out.println("update");
    }
    @Override
    public void delete(){
        System.out.println("delete");
    }
    @Override
    public void  select(){
        System.out.println("select");
    }

}
